package com.module.third.qiniu;

import androidx.annotation.Keep;

import java.io.File;
import java.io.Serializable;

@Keep
public class QiniuRerun implements Serializable {
    private String key;//文件名字
    private String hash;
    private String width;//宽
    private String height;//高
    private long size;//文件小
    private String mimeType;//文件类型
    private long time;//日期
    private long duration;//时长
    private long shotTime;//拍摄时间
    private double latitude;//纬度
    private double longitude;//经度
    private String country;//国家
    private String province;//省
    private String city;//城市
    private String area;//地区
    private String url;//七牛云接口不会返回

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getHash() {
        return hash;
    }

    public void setHash(String hash) {
        this.hash = hash;
    }

    public String getWidth() {
        return width;
    }

    public void setWidth(String width) {
        this.width = width;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public String getMimeType() {
        return mimeType;
    }

    public void setMimeType(String mimeType) {
        this.mimeType = mimeType;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public String getUrl() {
        if (url == null) {
            url = "http://" + QiniuSignUtils.HOST + File.separator + key;
        }
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public long getDuration() {
        return duration;
    }

    public void setDuration(long duration) {
        this.duration = duration;
    }

    public double getLatitude() {
        return latitude;
    }

    public void setLatitude(double latitude) {
        this.latitude = latitude;
    }

    public double getLongitude() {
        return longitude;
    }

    public void setLongitude(double longitude) {
        this.longitude = longitude;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public long getShotTime() {
        return shotTime;
    }

    public void setShotTime(long shotTime) {
        this.shotTime = shotTime;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }
}
